﻿using System;
using System.Reflection;

namespace Gmantis.Controls.DataGrid
{
    public class DataGridAutoGeneratingColumnEventArgs : EventArgs
    {
        // Methods
        internal DataGridAutoGeneratingColumnEventArgs(PropertyInfo property, DataGridBoundColumn column)
        {
            this.Property = property;
            this.Column = column;
        }

        // Properties
        public bool Cancel { get; set; }

        public DataGridBoundColumn Column { get; set; }

        public PropertyInfo Property { get; private set; }
    }
}
